-- skill_additional
-- create by wnagy
-- 施放xx技能，额外增加最大生命

return {
    apply = function(prop, baseValue)
        -- 提升的值
        return baseValue + prop[3];
    end,
    
    -- 释放技能时触发
    trigger = function(who, prop, arg)
        local attrib = "max_hp";
        local v = prop[3];

        if not v or v <= 0 then
            return false;
        else
            BonusM.doBonus({ 2, attrib, v, }, "skill_additional");
        end

        return v;
    end,
    
    record = function(target, prop, path)
        return false;
    end
};
